package com.ganzi.ganziserver.dao;

import com.ganzi.ganziserver.core.Role;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Repository
public interface RoleDao {

    public Role findRoleById(long id)throws Exception;
    public Role findRoleByIdForPermissions(long id)throws Exception;
    public List<Role> findAllRole()throws Exception;
    public void insertRole(Role role)throws Exception;
    public void deleteRole(long id)throws Exception;
}
